﻿using System;
using UnityEngine;

// Token: 0x0200000E RID: 14
public class DarkCorridorScript : MonoBehaviour
{
	// Token: 0x0600003E RID: 62 RVA: 0x00008414 File Offset: 0x00006614
	private void Update()
	{
		if (GameManager.main.playerBody.torso.transform.position.x > 28f)
		{
			this.wentBeyondLimit = true;
		}
		if (this.wentBeyondLimit)
		{
			GameManager.main.sceneLoadTarget = "SomewhereInNevada";
			GameManager.main.fadingOut = true;
			foreach (AudioSource audioSource in this.sources)
			{
				audioSource.volume -= Time.deltaTime * 10f;
				audioSource.pitch -= Time.deltaTime * 6f;
			}
		}
	}

	// Token: 0x040000CF RID: 207
	private float checkTime;

	// Token: 0x040000D0 RID: 208
	private bool wentBeyondLimit;

	// Token: 0x040000D1 RID: 209
	public AudioSource[] sources;
}
